<!DOCTYPE html>
<html lang="en">
<head>
        <title>Matrix Admin</title><meta charset="UTF-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<link rel="stylesheet" href="{{url('/css/admin/bootstrap.min.css')}}" />
		<link rel="stylesheet" href="{{url('/css/admin/bootstrap-responsive.min.css')}}" />
        <link rel="stylesheet" href="{{url('/css/admin/matrix-login.css')}}" />
        <link href="{{url('/css/font-awesome/css/font-awesome.css')}}" rel="stylesheet" />
        <style>
			#loginbox .form-actions{
				padding:14px 273px 15px;
			}
        </style>
		<!-- <link href='http://fonts.googleapis.com/css?family=Open+Sans:400,700,800' rel='stylesheet' type='text/css'> -->
    </head>
    <body>
        <div id="loginbox">            
            <form id="loginform" class="form-vertical" action="{{url('/admin/doLogin')}}" method="post">
            <input type="hidden" name="_token" value="{{ csrf_token() }}">
				<div class="control-group normal_text"> <h3><img src="/imgs/admin/img/logo.png" alt="Logo" /></h3></div>
                <div class="control-group">
                    <div class="controls">
                        <div class="main_input_box">
                            <span class="add-on bg_lg"><i class="icon-user"></i></span><input type="text" placeholder="管理员账号" name="name" />
                        </div>
                    </div>
                </div>
                <div class="control-group">
                    <div class="controls">
                        <div class="main_input_box">
                            <span class="add-on bg_ly"><i class="icon-lock"></i></span><input type="password" placeholder="请输入密码" name="pwd"/>
                        </div>
                    </div>
                </div>
                <div class="form-actions">
                    <span class="pull-right"><a type="button" class="btn btn-success" />登陆</a></span>
                </div>
            </form>
        </div>
        <script src="{{url('/js/jquery.min.js')}}"></script>  
        <script src="{{url('/js/matrix.login.js')}}"></script> 
	    <script>
			$(function(){
				$('.btn').click(function(){
					if($('#loginform input[name=name]').val() == '' || $('#loginform input[name=pwd]').val() == '')
					{
						alert('用户名或密码不能为空');
						return false;
					}
					$("#loginform").submit();
				});
			});
		</script>
       
    </body>

</html>
